package com.evon.yardmanagement.ui.action.transaction;

import java.util.List;

import com.evon.yardmanagement.dao.TransporterDAO;
import com.evon.yardmanagement.model.Transporter;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;

public class AssignTransporterAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<Transporter> availableTransporter;
	private int selectedTransporterId;
	
	
	
	public String execute(){
		
		return SUCCESS;
	}
	
	
	public List<Transporter> getAvailableTransporter() {
		return availableTransporter;
	}
	public void setAvailableTransporter(List<Transporter> availableTransporter) {
		this.availableTransporter = availableTransporter;
	}
	public int getSelectedTransporterId() {
		return selectedTransporterId;
	}
	public void setSelectedTransporterId(int selectedTransporterId) {
		this.selectedTransporterId = selectedTransporterId;
	}


	public String init() throws Exception {
		this.availableTransporter = new TransporterDAO().findAll();
		return SUCCESS;
		
	}
	
	

}
